﻿@{
    if (Context.Request.Query["layout"] == "view")
    {
        Layout = "_ViewLayout";
    }
    else if (Context.Request.Query["type"] != "ajax")
    {
        Layout = "_Layout";
    }
    if (Context.Request.Headers.ContainsKey("X-PJAX"))
    {
        Layout = null;
    }
}
